import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Stack;

public class Test05 {
    public static void main(String[] args) {
        //链表实现的双关队列
        Deque<Integer> deque = new LinkedList<>();
        //数组实现的双关队列
        Deque<Integer> deque1 = new ArrayDeque<>();
        //
        Stack<Integer> stack = new Stack<>();

        //ArrayDeque 实现栈
        Deque<Integer> stack2 = new ArrayDeque<>();
        stack2.push(1);
        stack2.push(2);
    }
}
